﻿namespace MobileTrack.Core.Tests
{
    using System.Linq;
    using Microsoft.VisualStudio.TestTools.UnitTesting;

    [TestClass]
    public class ConstantsFixture
    {
        [TestMethod]
        public void ShouldReturnAllApplicationRoles()
        {
            var roles = Constants.Roles;

            Assert.AreEqual(5, roles.Count());
            Assert.IsTrue(roles.Contains(Constants.AdministradorRole));
            Assert.IsTrue(roles.Contains(Constants.AsocianteRole));
            Assert.IsTrue(roles.Contains(Constants.DespachanteRole));
            Assert.IsTrue(roles.Contains(Constants.ReceptorRole));
            Assert.IsTrue(roles.Contains(Constants.VendedorRole));
        }
    }
}
